<?php
namespace Core\Service\Digest;

use Core\Config;

class ProductDigestService implements DigestServiceInterface{

    /**
     * @param string $userName
     * @param string $plainPassword
     * @return string
     */
    public function getUserPassword($userName, $plainPassword)
    {
        $conf = Config::getSystemConfig();
        $appkey = $conf->digest->app-key;
        return md5($userName . $appkey . $plainPassword);
    }
}